package com.vip.mvc.akka;

import akka.actor.Actor;
import akka.actor.IndirectActorProducer;

/**
 * Created by cloudy.xie on 17/2/16.
 */
public class DependencyInjector implements IndirectActorProducer {

    final Object applicationContext;
    final String beanName;

    public DependencyInjector(Object applicationContext, String beanName) {
        this.applicationContext = applicationContext;
        this.beanName = beanName;
    }

    @Override
    public Actor produce() {
//        return (Actor) applicationContext.get
        return null;
    }

    @Override
    public Class<? extends Actor> actorClass() {
//        return (Class<? extends Actor>) applicationContext.getType(actorBeanName);
        return null;
    }
}

